package org.llc.user.dto.requst;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 用户名/手机号密码登录DTO
 *
 * @author llc
 * @date 2019/11/27 12:15
 * @since 1.0.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "ReqPasswordLoginDTO", description = "登录DTO")
public class ReqPasswordLoginDTO extends ReqAuthDTO {

    @NotBlank(message = "用户名为空")
    @ApiModelProperty(value = "用户名（账号）/手机号",required = true)
    private String username;

    @NotBlank(message = "密码为空")
    @ApiModelProperty(value = "密码",required = true)
    private String password;
}
